package myException.myRestfulGolbalException;

import lombok.Data;

import java.io.Serializable;

/**
 * @author gq
 * date 2022/4/2 1:03 下午
 * @description
 **/
@Data
public class Records<T> implements Serializable {
    /**
     * 返回数据对象 data
     */
    private T records;

    public static <T> Records<T> returnRecords(T data) {
        Records<T> r = new Records<T>();
        r.setRecords(data);
        return r;
    }
}
